import http from "../http";
import config from "../config";

class IndexService {
  async login(params?: any): Promise<any> {
    return await http.post(config.ApiList.login, params);
  }

  async login2(params?: any): Promise<any> {
    return await http.post(config.ApiList.login2, params);
  }
}

export default new IndexService();
